package com.bmd.backgroundmanger.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户角色关联表实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_roles")
@Schema(name = "UserRole", description = "用户角色关联实体类")
public class UserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户角色关联ID")
    @TableId(value = "user_role_id", type = IdType.AUTO)
    private Integer userRoleId;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "角色ID")
    private Integer roleId;

    @Schema(description = "创建人")
    private Integer createBy;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改人")
    private Integer updateBy;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
} 